 #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
//template<typename T>
//void Swap(T& a, T& b)
//{
//	int tmp = a;
//	a = b;
//	b = tmp;
//}
template<typename T1,typename T2>
void Swap(T1& a, T2& b)
{
	int tmp = a;
	a = b;
	b = tmp;
}
int main()
{
	int i1 = 10;
	int i2 = 20;
	double d1 = 25.5;
	double d2 = 30.5;
	/*Swap(i1, i2);
	cout << "i1=" << i1 << endl;
	cout << "i2=" << i2 << endl;*/
	Swap(i1, d1);
	cout << "i1=" << i1 << endl;
	cout << "d1=" << d1 << endl;
	return 0;
}